<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>FLITr: include/flitr/multi_osg_consumer.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">FLITr
   &#160;<span id="projectnumber">1.x</span>
   </div>
   <div id="projectbrief">Framework for Live Image Transformation.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('multi__osg__consumer_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">multi_osg_consumer.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="multi__osg__consumer_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* Framework for Live Image Transformation (FLITr) </span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2010 CSIR</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This file is part of FLITr.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * FLITr is free software: you can redistribute it and/or modify it</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * under the terms of the GNU Lesser General Public License as</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * FLITr is distributed in the hope that it will be useful, but</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * You should have received a copy of the GNU Lesser General Public</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * License along with FLITr. If not, see</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#ifndef MULTI_OSG_CONSUMER_H</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define MULTI_OSG_CONSUMER_H 1</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;boost/tr1/memory.hpp&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;OpenThreads/Thread&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;OpenThreads/Mutex&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;osg/Image&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;osg/TextureRectangle&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="flitr__config_8h.html">flitr/flitr_config.h</a>&gt;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#ifdef FLITR_WITH_OSGCUDA</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &lt;osgCuda/Texture&gt;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="image__consumer_8h.html">flitr/image_consumer.h</a>&gt;</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">namespace </span>flitr {</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="keyword">class </span>MultiOSGConsumerDiscardThread;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html">   49</a></span>&#160;<span class="keyword">class </span><a class="code" href="flitr__export_8h.html#a954cc8ba3eaae88472e9d8f406ca4a86">FLITR_EXPORT</a> <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html">TMultiOSGConsumer</a> : <span class="keyword">public</span> <a class="code" href="classflitr_1_1_image_consumer.html">ImageConsumer</a> {</div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#a95b0b19c7ff8271c4e169b606437dd86">   50</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classflitr_1_1_multi_o_s_g_consumer_discard_thread.html">MultiOSGConsumerDiscardThread</a>;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html">TMultiOSGConsumer</a>(<a class="code" href="classflitr_1_1_image_producer.html">ImageProducer</a>&amp; producer,</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;                      uint32_t images_per_slot,</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;                      uint32_t images_in_history = 1);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    ~<a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html">TMultiOSGConsumer</a>();</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keywordtype">bool</span> init();</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;     <span class="keywordtype">void</span> startDiscardThread();</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    </div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    std::tr1::shared_ptr&lt;ImageMetadata&gt; getImageMetadata(uint32_t im_number = 0, uint32_t im_age = 0);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    osg::Image* getOSGImage(uint32_t im_number = 0, uint32_t im_age = 0);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    T* getOutputTexture(uint32_t tex_number = 0, uint32_t tex_age = 0);</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <span class="keywordtype">bool</span> getNext();</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#ac0eab94cd0dd8a72f97b20750425b471">  128</a></span>&#160;    std::vector&lt;ImageFormat&gt; <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#ac0eab94cd0dd8a72f97b20750425b471" title="A copy of the producer&#39;s formats.">ImageFormat_</a>;</div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#a38c8f69eac060cfab5791840c2a1500a">  130</a></span>&#160;    uint32_t <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#a38c8f69eac060cfab5791840c2a1500a" title="How many images per slot we expect.">ImagesPerSlot_</a>;</div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#a5432e08debd79288f506e10d60c60206">  132</a></span>&#160;    uint32_t <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#a5432e08debd79288f506e10d60c60206" title="How many images/textures to keep in a read busy state.">ImagesInHistory_</a>;</div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#a1c3ff8400de58746f991d34b6adf6309">  134</a></span>&#160;    uint32_t <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#a1c3ff8400de58746f991d34b6adf6309" title="Where in the list of history images to update next.">HistoryWritePos_</a>;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    </div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#a539a2245a5719c4bcab3bb116829b205">  137</a></span>&#160;    std::vector&lt; std::vector&lt; osg::ref_ptr &lt;osg::Image&gt; &gt; &gt; <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#a539a2245a5719c4bcab3bb116829b205" title="Buffer of OSG images that just wrap our producer&#39;s data.">OSGImages_</a>;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#ae1865150f292e87ae04abb5b3e58f558">  139</a></span>&#160;    std::vector&lt; std::vector&lt; std::tr1::shared_ptr &lt;flitr::ImageMetadata&gt; &gt; &gt; <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#ae1865150f292e87ae04abb5b3e58f558">Metadata_</a>;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#a30c7a37b16b64cba984bc85dd20488ac">  142</a></span>&#160;    std::vector&lt; std::vector&lt; osg::ref_ptr &lt;T&gt; &gt; &gt; <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#a30c7a37b16b64cba984bc85dd20488ac" title="Textures that can be used in OSG.">OutputTextures_</a>;</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#afd2048494383a9aa7e2f9cc9b1e208ce">  144</a></span>&#160;    std::vector&lt; osg::ref_ptr&lt;osg::Image&gt; &gt; <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#afd2048494383a9aa7e2f9cc9b1e208ce" title="Images to be used at initialisation for textures.">DummyImages_</a>;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#aae953e7829aa4cb5070f41bf5ae63063">  149</a></span>&#160;    OpenThreads::Mutex <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#aae953e7829aa4cb5070f41bf5ae63063">BufferMutex_</a>;</div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#ab188c03cc4d43ddab280648fc68199c5">  152</a></span>&#160;    std::tr1::shared_ptr&lt;MultiOSGConsumerDiscardThread&gt; <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#ab188c03cc4d43ddab280648fc68199c5">DiscardThread_</a>;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;};</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="preprocessor">#ifdef FLITR_WITH_OSGCUDA</span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="preprocessor"></span><span class="keyword">typedef</span> <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html">TMultiOSGConsumer&lt;osgCuda::TextureRectangle&gt;</a> <a class="code" href="namespaceflitr.html#a21c4e9b58b4988d712c5792118d57f28">MultiOSGConsumer</a>;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="code" href="namespaceflitr.html#a21c4e9b58b4988d712c5792118d57f28">  158</a></span>&#160;<span class="preprocessor"></span><span class="keyword">typedef</span> <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html">TMultiOSGConsumer&lt;osg::TextureRectangle&gt;</a> <a class="code" href="namespaceflitr.html#a21c4e9b58b4988d712c5792118d57f28">MultiOSGConsumer</a>;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="code" href="classflitr_1_1_multi_o_s_g_consumer_discard_thread.html">  164</a></span>&#160;<span class="keyword">class </span><a class="code" href="classflitr_1_1_multi_o_s_g_consumer_discard_thread.html">MultiOSGConsumerDiscardThread</a> : <span class="keyword">public</span> OpenThreads::Thread {</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00166"></a><span class="lineno"><a class="code" href="classflitr_1_1_multi_o_s_g_consumer_discard_thread.html#ab8f67f715cbafd51e2305b4d024dfaca">  166</a></span>&#160;    <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_discard_thread.html#ab8f67f715cbafd51e2305b4d024dfaca">MultiOSGConsumerDiscardThread</a>(<a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html">MultiOSGConsumer</a> *consumer) :</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_discard_thread.html#a80d78bad0941dc9b99d63ea6395958b7">Consumer_</a>(consumer),</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_discard_thread.html#a6e33b8b0710512f71a1a8c852cca525c">ShouldExit_</a>(false) {}</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_discard_thread.html#a4b80adbb1afd4243cde3cc67978aa28e">run</a>();</div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="code" href="classflitr_1_1_multi_o_s_g_consumer_discard_thread.html#af30762d87552605880a7e469b0d9c520">  170</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_discard_thread.html#af30762d87552605880a7e469b0d9c520">setExit</a>() { <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_discard_thread.html#a6e33b8b0710512f71a1a8c852cca525c">ShouldExit_</a> = <span class="keyword">true</span>; }</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00172"></a><span class="lineno"><a class="code" href="classflitr_1_1_multi_o_s_g_consumer_discard_thread.html#a80d78bad0941dc9b99d63ea6395958b7">  172</a></span>&#160;    <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html">MultiOSGConsumer</a> *<a class="code" href="classflitr_1_1_multi_o_s_g_consumer_discard_thread.html#a80d78bad0941dc9b99d63ea6395958b7">Consumer_</a>;</div>
<div class="line"><a name="l00173"></a><span class="lineno"><a class="code" href="classflitr_1_1_multi_o_s_g_consumer_discard_thread.html#a6e33b8b0710512f71a1a8c852cca525c">  173</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_discard_thread.html#a6e33b8b0710512f71a1a8c852cca525c">ShouldExit_</a>;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;};</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html">  177</a></span>&#160;<span class="keyword">class </span><a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html">MultiOSGConsumerMetadataCreator</a></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;{</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#ab68329fb6d60c20a41fc1f878b89d3d3">  180</a></span>&#160;    <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#ab68329fb6d60c20a41fc1f878b89d3d3">MultiOSGConsumerMetadataCreator</a>(<a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html">MultiOSGConsumer</a> *mosgc, uint32_t image_in_slot=0, uint32_t slot_in_history=0) :</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#a2411ed2098d7168ec9cc3e6e83a2ebdb">mosgc_</a>(mosgc),</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#a022ede2ede1386465479d1dfd4feaf25">image_in_slot_</a>(image_in_slot),</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#a2676a643d549e1e868749fea4c34c2b7">slot_in_history_</a>(slot_in_history)</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    {</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    }</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#a87cca04461bca86d50833352aeaba75e">  187</a></span>&#160;    std::tr1::shared_ptr&lt;ImageMetadata&gt; <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#a87cca04461bca86d50833352aeaba75e">getCurrentMetadata</a>()</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    {</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#a2411ed2098d7168ec9cc3e6e83a2ebdb">mosgc_</a>-&gt;<a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html#a6bd88334f6aef64d29c490a850481756">getImageMetadata</a>(<a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#a022ede2ede1386465479d1dfd4feaf25">image_in_slot_</a>, <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#a2676a643d549e1e868749fea4c34c2b7">slot_in_history_</a>);</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    }</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#a2411ed2098d7168ec9cc3e6e83a2ebdb">  193</a></span>&#160;    <a class="code" href="classflitr_1_1_t_multi_o_s_g_consumer.html">MultiOSGConsumer</a> *<a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#a2411ed2098d7168ec9cc3e6e83a2ebdb">mosgc_</a>;</div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#a022ede2ede1386465479d1dfd4feaf25">  194</a></span>&#160;    uint32_t <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#a022ede2ede1386465479d1dfd4feaf25">image_in_slot_</a>;</div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#a2676a643d549e1e868749fea4c34c2b7">  195</a></span>&#160;    uint32_t <a class="code" href="classflitr_1_1_multi_o_s_g_consumer_metadata_creator.html#a2676a643d549e1e868749fea4c34c2b7">slot_in_history_</a>;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;};</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;}</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;<span class="preprocessor">#endif //MULTI_OSG_CONSUMER_H</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_5439e23e71bfff00a4bb4e3e77d969de.html">include</a></li><li class="navelem"><a class="el" href="dir_8ba83f5bebe387d07fd59c14a8974e49.html">flitr</a></li><li class="navelem"><a class="el" href="multi__osg__consumer_8h.html">multi_osg_consumer.h</a></li>
    <li class="footer">Generated on Thu Dec 6 2012 09:15:44 for FLITr by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.2 </li>
  </ul>
</div>
</body>
</html>
